repo: Don't require a txn for writing
authorColin Walters <walters@verbum.org>
Mon, 26 May 2014 22:32:17 +0000 (18:32 -0400)
committerColin Walters <walters@verbum.org>
Mon, 26 May 2014 22:49:17 +0000 (18:49 -0400)
commitf1ccaa581e3b0541fd5e9aacdae810885010bf5b
treef3b1747e813d04efdd7b7c0865232dd0d08643c8
parenta4d01976bb9722476b035abc87aa023bba2c7691
repo: Don't require a txn for writing

The current "transaction" symlink was introduced to fix issues with
interrupted pulls; normally we assume that if we have a metadata
object, we also have all objects to which it refers.

There used to be a "summary" which had all the available refs, but I
deleted it because it wasn't really used, and was still racy despite
the transaction bits.

We still want the pull process to use the transaction link, so don't
delete the APIs, just relax the restriction on object writing, and
introduce a new ostree_repo_set_ref_immediate().
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-refs.c